/* ================================
   移动端辩论赛网页样式表
   主题：黑客帝国风格 - 丧尸互联网理论
   专为移动设备优化设计
   ================================ */

/* 基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    --matrix-green: #00ff41;
    --dark-green: #003d00;
    --bg-black: #0a0a0a;
    --text-white: #e0e0e0;
    --red-warning: #ff0040;
    --blue-cyber: #00d4ff;
    --shadow-green: 0 0 20px rgba(0, 255, 65, 0.3);
    --mobile-padding: 1rem;
    --section-padding: 2rem 1rem;
}

body {
    font-family: 'Fira Code', monospace;
    background: var(--bg-black);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
}

/* ================================
   矩阵雨背景效果 - 移动端优化
   ================================ */
.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.05; /* 移动端降低透明度以节省电量 */
}

/* ================================
   移动端头部区域
   ================================ */
.mobile-header {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(0, 61, 0, 0.3));
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--mobile-padding);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
}

.mobile-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--matrix-green);
    margin: 5px 0;
    transition: 0.3s;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.mobile-nav-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 2rem var(--mobile-padding);
    gap: 1rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link:active {
    color: var(--matrix-green);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.desktop-link {
    color: var(--blue-cyber) !important;
    border-bottom-color: rgba(0, 212, 255, 0.2) !important;
}

.desktop-link:hover {
    color: var(--blue-cyber) !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5) !important;
}

/* ================================
   移动端英雄区域
   ================================ */
.mobile-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px var(--mobile-padding) 2rem;
    min-height: 100vh;
}

.mobile-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--matrix-green);
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.7);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { 
        text-shadow: 0 0 20px rgba(0, 255, 65, 0.7); 
    }
    to { 
        text-shadow: 0 0 30px rgba(0, 255, 65, 1), 0 0 40px rgba(0, 255, 65, 0.5); 
    }
}

.mobile-subtitle {
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.4;
}

.mobile-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 300px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
}

.icon {
    font-size: 1.2rem;
}

/* ================================
   移动端通用容器
   ================================ */
.mobile-container {
    max-width: 100%;
    padding: 0 var(--mobile-padding);
    margin: 0 auto;
}

.mobile-section {
    padding: var(--section-padding);
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    color: var(--matrix-green);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* ================================
   移动端辩题区域
   ================================ */
.topic-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-green);
}

.topic-question h3 {
    font-size: 1.3rem;
    color: var(--matrix-green);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
}

.topic-sides {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side {
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid;
}

.side.positive {
    background: rgba(0, 255, 65, 0.05);
    border-color: rgba(0, 255, 65, 0.3);
}

.side.negative {
    background: rgba(255, 0, 64, 0.05);
    border-color: rgba(255, 0, 64, 0.3);
}

.side h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--matrix-green);
}

.side.negative h4 {
    color: var(--red-warning);
}

.side p {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* ================================
   移动端队伍区域
   ================================ */
.teams-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-green);
}

.team h3 {
    font-size: 1.3rem;
    color: var(--matrix-green);
    text-align: center;
    margin-bottom: 1.5rem;
}

.negative-team {
    border-color: rgba(255, 0, 64, 0.3);
    box-shadow: 0 0 20px rgba(255, 0, 64, 0.3);
}

.negative-team h3 {
    color: var(--red-warning);
}

.team-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.member {
    text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
}

.negative-team .member {
    border-color: rgba(255, 0, 64, 0.2);
}

.member-role {
    font-size: 0.9rem;
    color: var(--matrix-green);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.negative-team .member-role {
    color: var(--red-warning);
}

.member-name {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ================================
   移动端规则区域
   ================================ */
.rules-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rule-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    gap: 1rem;
}

.rule-time {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
    color: var(--matrix-green);
    font-weight: bold;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 4px;
}

.rule-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* ================================
   移动端结果区域
   ================================ */
.results-placeholder {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    box-shadow: var(--shadow-green);
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.results-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.result-time {
    font-size: 0.9rem !important;
    opacity: 0.7;
}

/* ================================
   移动端赛前调查区域
   ================================ */
.mobile-survey-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-green);
}

.mobile-survey-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-survey-intro h3 {
    color: var(--matrix-green);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', monospace;
}

.mobile-survey-intro p {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
}

.mobile-qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.mobile-qr-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-qr-code {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 2px solid var(--matrix-green);
    box-shadow: var(--shadow-green);
    position: relative;
    z-index: 2;
}

.mobile-qr-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 255, 65, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.mobile-qr-info {
    text-align: center;
}

.mobile-qr-title {
    color: var(--matrix-green);
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.mobile-qr-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
}

.mobile-survey-link {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-link-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--matrix-green), var(--dark-green));
    color: var(--bg-black);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-green);
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-link-button:hover,
.mobile-link-button:active {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    background: linear-gradient(45deg, var(--dark-green), var(--matrix-green));
}

.mobile-survey-features {
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding-top: 1.5rem;
}

.mobile-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mobile-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-feature-item:hover {
    background: rgba(0, 255, 65, 0.1);
    border-color: rgba(0, 255, 65, 0.4);
    transform: translateY(-2px);
}

.mobile-feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.mobile-feature-text {
    font-size: 0.85rem;
    color: var(--matrix-green);
    font-weight: bold;
}

/* ================================
   移动端页脚
   ================================ */
.mobile-footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(0, 255, 65, 0.3);
    padding: var(--section-padding);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--matrix-green);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-info p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--blue-cyber);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--blue-cyber);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ================================
   移动端动画优化
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   移动端响应式适配
   ================================ */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .mobile-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .topic-question h3 {
        font-size: 1.1rem;
    }
    
    .team-members {
        grid-template-columns: 1fr;
    }
    
    .rule-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .rule-time {
        width: auto;
    }
    
    .mobile-qr-wrapper {
        width: 160px;
        height: 160px;
    }
    
    .mobile-qr-code {
        width: 140px;
        height: 140px;
    }
    
    .mobile-qr-glow {
        width: 160px;
        height: 160px;
    }
    
    .mobile-feature-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 360px) {
    :root {
        --mobile-padding: 0.75rem;
        --section-padding: 1.5rem 0.75rem;
    }
    
    .mobile-title {
        font-size: 1.8rem;
    }
    
    .mobile-nav {
        height: 55px;
    }
    
    .mobile-nav-menu {
        top: 55px;
        height: calc(100vh - 55px);
    }
    
    .mobile-hero {
        padding-top: 75px;
    }
    
    .mobile-qr-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .mobile-qr-code {
        width: 120px;
        height: 120px;
    }
    
    .mobile-qr-glow {
        width: 140px;
        height: 140px;
    }
    
    .mobile-link-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ================================
   移动端触摸优化
   ================================ */
.nav-link,
.footer-link,
.mobile-menu-toggle,
.mobile-link-button {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 移动端滚动条隐藏 */
.mobile-nav-menu::-webkit-scrollbar {
    display: none;
}

.mobile-nav-menu {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
